fix(readonly): avoid changing permissions when not needed
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 30 May 2025 15:53:04 +0000 (17:53 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 2 Jun 2025 11:14:15 +0000 (13:14 +0200)
commit2fcaf264442524627eb06feb2520541e0e3d6cf3
treeaff57374ce126d985ace2ed266caaafee9586977
parent2d9e9a007f30fa0593c68c5924bb59d97514cd1e
fix(readonly): avoid changing permissions when not needed

in FilePermissionsRestore, first checks the folder permissions before
changing them

will avoid useless call changing permissions when not needed

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/filesystem.cpp
test/testpermissions.cpp